import java.io.*;

/**
 * 
 */

/**
 * @author John Sterken, Rudie Rep
 * @version 20120912
 */
public class CharCounter {
	
	public int getOccurences(char letter,String text) {
		int count = 0;
		
		for(int i=0;i < text.length(); i++) {
			if(text.charAt(i) == letter) {
				count ++;
			}
		}
		
		return count;
	}
}
